<?php
return [
    'debug' => 1,
    'auto_update' => 1,
    'default_namespace' => 'site\\controller',
    'task_namespace'=>'site\\task',
    'allow_sub_domain' => [
        'localsite'=>'site',
        'localadmin'=>'admin',
        'localhd'=>'activity',
        'investdev' => 'site',
    ],
    'redis' => [
        'default'=>[
            'host' => '10.50.28.75',
            'port' => '6379',
            'pconnect'=>0,
            'password'=>'redis123',
            'database'=>1,
            'timeout'=>2,
            'prefix'=>'',
        ],
        'id_gen'=>[
            'host' => '10.50.28.197',
            'port' => '9500',
            'pconnect'=>0,
            'password'=>'',
            'database'=>0,
            'timeout'=>2,
            'prefix'=>'',
        ]
    ],
    'beanstalk' => [
        'host' => '127.0.0.1',
        'port' => 11300,//端口
        'pconnect'=>0,
        'connectTimeout' => 2,//连接超时时间
        'priority' => 1024,//优先级 最高优先级: 0, 最低: 4294967295
        'delay' => 0,//默认延迟时间
        'ttr' => 60,//默认处理时间
    ],
    'mysql' => [
        'adapter' => 'Mysql',
        'host' => '172.19.20.50',
        'port' => '6033',
        'username' => 'xhh_site_hd_test11',
        'password' => 'xhh_site_hd_test11xhh_site_hd_test11',
        'dbname' => 'xhh_site_hd_test11',
        'prefix' => 'xhh_',
        'charset' => 'utf8',
    ],

//        'adapter' => 'Mysql',
//        'host' => 'dbproxy-test.xinhehui.com',
//        'port' => '6033',
//        'username' => 'xhh_site_hd_test2',
//        'password' => 'xhh_site_hd_test2xhh_site_hd_test2',
//        'dbname' => 'xhh_site_hd_test2',
//        'prefix' => 'xhh_',
//        'charset' => 'utf8',
        // 'adapter' => 'Mysql',
        // 'host' => '10.50.28.51',
        // 'username' => 'yrzif_test10',
        // 'password' => 'yrzif_test10yrzif_test10',
        // 'dbname' => 'yrzif_test10',
        // 'prefix' => 'xhh_',
        // 'charset' => 'utf8',
    'application' => [
        'controller' => APP_PATH . '/controller/',
        'model' => APP_PATH . '/model/',
        'migration' => APP_PATH . '/migration/',
        'view' => APP_PATH . '/view/',
        'plugin' => APP_PATH . '/plugin/',
        'library' => APP_PATH . '/library/',
//        'cache' => APP_PATH . '/cache/',
        'baseUri' => '/',
    ],
    'BONUS_SECRET' => '108474E4A6CDB1A5958C259F178BC962',   //红包秘钥
    'img_server_url' => 'http://img-test9.xinhehui.com/',   //图片上传服务器
    'domain'=>'http://localhd.xinhehui.com/',
    'wap_domain'=>'https://wap-test9.xinhehui.com/',
    'yrzif_domain'=>'http://test9.xinhehui.com/',
    'yrzif_wap_domain'=>'https://wap-test9.xinhehui.com/',
    'site_domain'=>'http://site.xinhehui.com/',
    'img_path'=>'https://www.xinhehui.com/public/images/',
    'passport_api_url' => 'https://passport-test8.xinhehui.com/ ',
    'api_url' => [
        //yrzif接口域名
        'yrzif_api_url' => 'https://test11.xinhehui.com/',
        'passport_api_url' => 'https://passport-test11.xinhehui.com/',
        'java_bonus_api_url' => 'http://bonus-test11.xinhehui.com/',  //java红包域名
        'mock_url' => 'http://10.30.28.44:3000/site_mock/',
    ],
    //微信
    'weixin_secret_key' => [
        'appid' => 'wx8d0a4574dca0be4d',
        'appsecret'=>'b8a6624cd5e518c51116ff8e2bb601e3',
    ],
    'duiba_config'=>[
        'url'=>'http://www.duiba.com.cn/',
        'appkey'=>'3F7UDvAmdVoRADrapbQRNANWKcEf',
        'appsecret'=>'2zQEfpMoFmssvmgn6p3SvPN2F3ob'
    ],

    'task_config'=>[
        'mq_queue_name' => 'DuiBa',
        'local_app_id' => 'omoncpgiokmslgsl',
    ],
    'needcnzz' => true, //拔牙游戏活动天数
    'image_url'=>'http://hd.xinhehui.com/upload/',  //图片上传地址
];
